package com.tledu.springboot02.service;

import com.tledu.springboot02.dao.IUserDao;
import com.tledu.springboot02.model.User;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Antg
 * @date 2021/8/24  16:19
 */
@Service
@AllArgsConstructor
public class UserServiceImpl implements IUserService{
    private final IUserDao userDao;
    @Override
    public List<User> findAll() {
        return userDao.findAll();
    }
}
